<form class="layui-form layui-form-pane" id="addForm"  lay-filter="editform">
    <div class="layui-row">
        <div class="layui-form-item">
            <input type="hidden" name="transactionId" value="${finTrans.transactionId}"/>
            <!--#if(refundCount!=0||applyCount!=0){  -->
<!--               <div class="layui-card-body " style="width: 350px">-->
                   <center><span style="color:red">该用户退款记录：${refundCount} 条，申请记录：${applyCount} 条</span></center>
<!--               </div>-->
            <!--#} -->
            <div class="layui-card-body " style="width: 350px">订单编号: <span>${finTrans.orderNo}</span></div>
            <div class="layui-card-body" style="width: 150px;">购买用户: <span>${finTrans.tel}</span></div>
            <div class="layui-card-body" style="">购买时间: <span>${finTrans.createTimeText}</span></div>
            <div class="layui-card-body" style="">退款原因:
                <textarea name="reason" id="reason" class="textarea" lay-verify="required" rows="6" cols="40" style="vertical-align:top"></textarea>
            </div>
            <div class="layui-card-body" style="width:470px">附件:
                    <input type="file"  name="imgFile" accept="image/gif, image/jpeg, image/png, image/jpg">
            </div>
        </div>
    </div>
</form>
<script>
    function refund(){
        if ($("#reason").val()=="") {
            Common.info("请输入退款原因。");
            return;
        }
        Lib.submitFileForm("/trans/finTransaction/virtualRefund.json",$('#addForm'),{},function (res) {
           dataReload();
           Common.success("操作成功");
           layer.close(layer.index);
        })
    }
</script>
